package com.desiy.dao;

import com.desiy.entity.Admin;
import com.desiy.vo.AdminVO;
import com.desiy.vo.PageVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Desiy
 * @date 2020/5/12 10:19
 */
@Mapper
public interface AdminDao {
    List<Admin> adminList();
    List<Admin> adminListByUsername(String username);
    Admin selectAdmin(String username);
    String selectPassword(String username);
    // 注册时需要
    String selectUsername(String username);
    // 注册时需要
    void add(String rel_name, String username, String password);
    void add(Admin admin);
    void del(Integer id);
    AdminVO edit(Integer id);
}
